To define a non-pushdown function, a Java function must be provided that matches the metadata supplied either in the Designer or Dynamic VDB defined metadata. User Defined Function (or UDF) and User Defined Aggregate Function (or UDAF) may be called at runtime just like any other function or aggregate function respectively.
Post Code Activities
Using Designer
The JAR file needs be attached along with the VDB file under "lib" directory on the VDB archive file.
Dynamic VDB
Create a JBoss AS module with the JAR file under <jboss-as>/modules directory and define the module on the -vdb.xml file as shown below example
<vdb name="{vdb-name}" version="1">
<property name ="lib" value ="{module-name}" />
...
</vdb>